package com.example.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HelloController {
	
	@RequestMapping(value="/hello",method= RequestMethod.GET)
	@ResponseBody
	public String say() {
		return "hello world";
	}
	@RequestMapping(value="/index",method= RequestMethod.GET)
	public String see() {
		return "/index";
	}
	
	@RequestMapping(value="/test",method= RequestMethod.GET)
	public String see2() {
		return "/test";
	}
}
